package com.ssn.composite.menu;

public class Client {
    public static void main(String[] args) {
        Menu root = new Menu("root");
        Menu man = new Menu("man");
        Menu woman = new Menu("woman");
        Menu boy = new Menu("boy");
        Menu girl = new Menu("girl");
        Menu littleBoy = new Menu("littleBoy");
        Menu bigBoy = new Menu("bigBoy");
        Menu littleGirl = new Menu("littleGirl");
        Menu bigGirl = new Menu("bigGirl");
        root.addSub(man);
        root.addSub(woman);
        man.addSub(boy);
        woman.addSub(girl);
        boy.addSub(littleBoy);
        boy.addSub(bigBoy);
        girl.addSub(littleGirl);
        girl.addSub(bigGirl);
        root.showAllSubs("");
        boy.click();
    }
}
